updating oE disk_size
disk_size
include filesys.e namespace filesys public function disk_size(object disk_path)
returns the amount of space for a disk drive.
Parameters:
- disk_path : A sequence. This is the path that identifies the disk to inquire upon.
Returns:
A sequence, containing TOTAL_BYTES, USED_BYTES, FREE_BYTES, and a string which represents the filesystem name
Example 1:
res = disk_size("C:\\") printf(1, "Drive %s has %3.2f%% free space\n", { "C:", res[FREE_BYTES] / res[TOTAL_BYTES] })
Not Categorized, Please Help
|